<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Frame extends MY_Controller 
{
	public function index()
	{	

		//
		$admin_id = $this->session->userdata('admin_id');
		$query = $this->db->query("SELECT name, headimg FROM nmp_admin WHERE id = '$admin_id'");
		$data = $query->row_array();

		$this->load->view('frame',$data);
	}
}

?>